package com.junxonline.instant.dao.mapper.config;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.junxonline.instant.dao.entity.model.config.Region;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 系统区域表Mapper
 *
 * @author JunX
 * @date 2021-07-18
 */
@Repository
public interface RegionMapper extends BaseMapper<Region> {

    IPage<Region> queryList(Page<Region> page, @Param("ew") Wrapper<Region> wrapper);

    Region selectById(@Param("ew") Wrapper<Region> wrapper);

    Long selectIdByName(@Param("name") String name);

}
